package com.blog.Bard.base.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;

import java.util.Date;


/**
 * The persistent class for the user database table.
 * 
 */
@Data
@Entity
@Table(name="user")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class User implements Serializable {
	private static final long serialVersionUID = 3777475411850911817L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	private int id;

	@Column(nullable=false)
	private int age;

	@Temporal(TemporalType.DATE)
	private Date createTime;

	@Column(nullable=false, length=100)
	private String name;
	
	@Column(nullable=false)
	private String password;
	
}